import React, { useEffect, useState, lazy, Suspense } from "react";

import First from "./pages/topone";
import Login from "./pages/login";
import Mygwc from "./pages/mygwc";
import No from "./pages/nofond";
import Zhuce from "./pages/zhuce";
import Myhome from "./pages/myhome";
import Xq from "./pages/xiangqing";
import { Route, Routes } from "react-router-dom";
import Dianpu from "./pages/mydianpu";
import Add_products from "./pages/add_products";
import Cs from "./pages/cs";
import Zc from "./pages/zc";
import Jj from "./pages/jianjie";
import Add_newdoor from './pages/tuijian/good'
import Add_newdoor_cailiao from './pages/tuijian/cailiao'
import Add_newdoor_home from './pages/tuijian/home'
import Add_newdoor_pctext from "./pages/tuijian/jianjie";
import Add_newdoor_pcphone from "./pages/tuijian/phone";
import Add_newdoor_pcclass from "./pages/tuijian/pcclass";
import Add_newdoor_lunbo from "./pages/tuijian/lunboimage";
import Add_products_push_door from "./pages/tuijian/push_door";
import Add_newdoor_jianjie_image from './pages/tuijian/jianjieimage'
import Add_newdoor_my_image from './pages/tuijian/myimage'
export default function App() {

  

  return (
    <div className="beijing">

      <Routes>
       
          <Route path="/" element={<First />} >
            <Route index element={<Myhome />} />
            <Route path="/mygwc" element={<Mygwc />} />
            <Route path="*" element={<No />} />
            <Route path="/zhuce" element={<Zhuce />} />
            <Route path="/login" element={<Login />} />
            <Route path="/dianpu" element={<Dianpu />} />
            <Route path=":objectId" element={<Xq/>} />
            <Route path="/add_products" element={<Add_products/>}/>
            <Route path="/cs" element={<Cs/>}/>
            <Route path="/zc" element={<Zc/>}/>
            <Route path="/jj" element={<Jj/>}/>
            <Route path="/add_newdoor" element={<Add_newdoor/>}/>
            <Route path="/add_newdoor_cailiao" element={<Add_newdoor_cailiao/>}/>
            <Route path="/add_newdoor_home" element={<Add_newdoor_home/>}/>
            <Route path="/add_newdoor_pctext" element={<Add_newdoor_pctext/>}/>
            <Route path="/add_newdoor_pcphone" element={<Add_newdoor_pcphone/>}/>
            <Route path="/add_newdoor_pcclass" element={<Add_newdoor_pcclass/>}/>
            <Route path="/add_newdoor_lunbo" element={<Add_newdoor_lunbo/>}/>
            <Route path="/add_products_push_door" element={<Add_products_push_door/>}/>
            <Route path="/add_products_push_jianjieimage" element={<Add_newdoor_jianjie_image/>}/>
            <Route path="/add_products_push_myimage" element={<Add_newdoor_my_image/>}/>
          </Route>
        


      </Routes>
{/* </Suspense> */}
    </div>
  )


}